﻿Imports FL_8x0.Common

Namespace FL_8x0.View

    Public Class ActivationWindow
        Private Sub activation_Click(sender As Object, e As RoutedEventArgs)
            Dim strSn As String = GetMd5(GetMd5(MacUtil.GetId()))
            If sn.Text <> Common.SystemData.SN And sn.Text <> strSn Then
                log.WriteLogError("软件激活", "错误的激活码！")
            Else
                SaveSetting("FL-830", "activation", "activation-code", sn.Text)
                DialogResult = True
            End If
        End Sub

        Private Sub Obtain_Click(sender As Object, e As RoutedEventArgs) Handles Obtain.Click
            Call New ObtaionKeyWindow().Show()
        End Sub
    End Class
End NameSpace